#pragma once

const int XSCREEN = GetSystemMetrics(SM_CXSCREEN);
const int YSCREEN = GetSystemMetrics(SM_CYSCREEN);

const int XMAP = 26;
const int YMAP = 26;

const int GRIDSIZE = 30;

const int DIR_DOWN = 1;
const int DIR_LEFT = 2;
const int DIR_RIGHT = 3;
const int DIR_UP = 4;

const int LEFTMAP = 200;
const int TOPMAP = (YSCREEN - XMAP*GRIDSIZE) / 2;
const int WIDTHMAP = XMAP*GRIDSIZE;
const int HEIGHTMAP = YMAP*GRIDSIZE;

const BLENDFUNCTION bf = { 0,0,MAXBYTE,AC_SRC_ALPHA, };

const RECT NEWGAME = { 0,0,100,30 };
const RECT READSAVING = { 0,30,100,60 };
const RECT QUIT = { 0,60,100,90 };

const int MAXLINE = 5;
const int MAXROW = 4;
const int MAXLEVEL = MAXLINE*MAXROW;
const wchar_t LEVEL[MAXROW][MAXLINE] = { '0','1','2','2','1','0','0','1','2','1','2','1','0','1','0','1','2','1','0','1' };
const int XBLANK = 250;
const int YBLANK = 100;
const int XGAP = (XSCREEN - 2 * XBLANK - 100) / (MAXLINE - 1);
const int YGAP = 150;